export {}
let obj: { name: string; age: number; say(name: string): void } = {
  name: '黑马',
  age: 18,
  say(name) {},
}
let obj1: MyObj = {
  name: '黑马',
  age: 18,
  say(name) {},
}
type MyObj = {
  name: string
  age: number
  //   say(name: string): void
  say: (name: string) => void
}
